package com.cz.video.common.storage.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * STS临时授权访问OSS
 */
@Data
@Accessors(chain = true)
@Schema(title = "sts凭证")
public class StsSecurityTokenEntity implements Serializable {

  @Serial
  private static final long serialVersionUID = 1L;

  @Schema(title = "accessKeyId")
  private String accessKeyId;

  @Schema(title = "accessKeySecret")
  private String accessKeySecret;

  @Schema(title = "securityToken")
  private String securityToken;

  @Schema(title = "过期时间")
  private String expiration;

  @Schema(title = "endpoint")
  private String endpoint;

  @Schema(title="bucketName")
  private String bucketName;

  @Schema(title = "上传基础路径")
  private String basePath;

  @Schema(description = "回调url")
  private String callbackUrl;

  @Schema(description = "回调body")
  private String callbackBody;

  @Schema(description = "回调body类型")
  private String  callbackBodyType;

}
